View Issue Details

IDProjectCategoryView StatusLast Update
0001676T99X171.00 SKB EagleSW Issuepublic2023-04-21 12:13
Reporter(ALTech) JunGyu Kim Assigned To(ALTech) JunGyu Kim Due Date2023-03-10 14:46
PriorityhighSeveritys4-minorReproducibilityalways
Status closedResolutionfixed 
Summary0001676: [Smart3][ATV12] Downgrade failed from 15.537.18 to lower version.
DescriptionHi Kerwin,

I tried downgrading from the Non-secure board - 15.537.18 to 15.537.14 via USB to check for other issues.
But the downgrade fails at 24%.

It's unclear which version is started this issue.
Please check the issue.
TagsNo tags attached.
Attach Tags

Users monitoring this issue

Activities

(SW) Kerwin Chen

2023-03-09 14:06

developer   ~0012485

Hi Mr. JunGyu Kim,

We applied 2023-02 security patch recently.
Downgrade to another version with lower security patch is not allowed by Google.

Thank you !

(ALTech) JunGyu Kim

2023-03-09 16:38

developer   ~0012487

Hi Kerwin,

Thanks for checking.
However, I guess we will have to find out a way to downgrade.
Since SKB supports downgrade through emergency recovery (FTP), this symptom seems to be a problem.

Please check which security patch is causing it, and please find a way to downgrade.

Thank you.
Kim

(SW) Kerwin Chen

2023-03-09 16:44

developer   ~0012488

Last edited: 2023-03-09 16:53

Hi Mr. JunGyu Kim,

Please provide log for analysis

Thank you!

(SW) Jerry Lin

2023-03-09 17:54

developer   ~0012489

Last edited: 2023-03-09 17:59

Hi Mr. JunGyu Kim,

The results of our verfication are as follows:
1. Android 12 prohibits downgrade when the secure patch is different.
2. We can't guarantee whether it can be booted normally after the forcced update.
3. We can do wipe data when secure patch is different.

Please discuss with SKB.

The error message of recovery mode:
<11>[ 26.720773@0]- recovery: Current SPL: 2023-02-01 Target SPL: 2023-01-01 this is considered a downgrade
<11>[ 26.720795@0]- recovery: Denying OTA because it's SPL downgrade

// source code is in bootable/recovery/install/install.cpp
const auto current_spl = android::base::GetProperty("ro.build.version.security_patch", "");
  if (ViolatesSPLDowngrade(zip, current_spl)) {
    LOG(ERROR) << "Denying OTA because it's SPL downgrade";
    return INSTALL_ERROR;
  }

Jerry

(ALTech) JunGyu Kim

2023-03-10 09:58

developer   ~0012497

Hi Jerry,

Thank you for verification.
The result of discuss of SKB, please proceed wipe data partition when secure patch is different.

Thank you.
Kim

(ALTech) Younkwang Jung

2023-03-13 09:55

developer   ~0012510

Hi Jerry

SKB QA team cannot downgrade FW. so this issue needs quick support
and a new ATV12 FW release is planned for tomorrow. it must be applied until then.
please only wipe data when a security patch version is downgraded.

Thank you
YK.Jung

(SW) Jerry Lin

2023-03-13 10:24

developer   ~0012511

Hi YK,
This commit will fix this issue.
Today , I will get the lastest code and release a test FW to you.

2023-03-10 16:46:32 | liang-chyi.lin@fii.. | 0e63bfd9 | bootable/recovery | allow downgrade and wipe data when the secure patch is different.

Jerry

(SW) Jerry Lin

2023-03-13 11:39

developer   ~0012512

Hi YK,
i upload test FW in /release_by_fxn/smart3_test/Mantis1676_dl_secure_patch.
This FW is SD version and build in today morning.
I also check in my side and test result is ok.
The downgrade FW is from 15.537.21 to 15.537.14.

Jerry

(SW) Jerry Lin

2023-03-15 15:00

developer   ~0012539

fixed

(ALTech) JunGyu Kim

2023-04-21 12:13

developer   ~0012941

This issue has been resolved.
I close this issue.

Thank you
Kim

Issue History

Date Modified Username Field Change
2023-03-09 13:51 (ALTech) JunGyu Kim New Issue
2023-03-09 13:51 (ALTech) JunGyu Kim Status new => assigned
2023-03-09 13:51 (ALTech) JunGyu Kim Assigned To => (SW) Kerwin Chen
2023-03-09 13:51 (ALTech) JunGyu Kim Issue Monitored: (ALTech) SY Yoon
2023-03-09 13:51 (ALTech) JunGyu Kim Issue Monitored: (ALTech) Younkwang Jung
2023-03-09 14:06 (SW) Kerwin Chen Note Added: 0012485
2023-03-09 14:06 (SW) Kerwin Chen Assigned To (SW) Kerwin Chen => (ALTech) JunGyu Kim
2023-03-09 14:06 (SW) Kerwin Chen Status assigned => acknowledged
2023-03-09 16:38 (ALTech) JunGyu Kim Note Added: 0012487
2023-03-09 16:44 (SW) Kerwin Chen Note Added: 0012488
2023-03-09 16:53 (SW) Kerwin Chen Note Edited: 0012488
2023-03-09 17:00 (SW) Kerwin Chen Assigned To (ALTech) JunGyu Kim => (SW) Jerry Lin
2023-03-09 17:54 (SW) Jerry Lin Note Added: 0012489
2023-03-09 17:59 (SW) Jerry Lin Note Edited: 0012489
2023-03-10 09:58 (ALTech) JunGyu Kim Note Added: 0012497
2023-03-13 09:55 (ALTech) Younkwang Jung Note Added: 0012510
2023-03-13 10:24 (SW) Jerry Lin Note Added: 0012511
2023-03-13 11:39 (SW) Jerry Lin Note Added: 0012512
2023-03-15 14:59 (SW) Jerry Lin Assigned To (SW) Jerry Lin => (ALTech) JunGyu Kim
2023-03-15 15:00 (SW) Jerry Lin Status acknowledged => resolved
2023-03-15 15:00 (SW) Jerry Lin Resolution open => fixed
2023-03-15 15:00 (SW) Jerry Lin Note Added: 0012539
2023-04-21 12:13 (ALTech) JunGyu Kim Status resolved => closed
2023-04-21 12:13 (ALTech) JunGyu Kim Note Added: 0012941